package xyc.szk.web.servlet.response;
/*
 * @Description:
 * @Author: 山志凯
 * @Date: 2021-03-31
 * @Time: 09:44
 */

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/resp02")
public class ResponseServlet02 extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println(this.getServletContext().getAttribute("username"));
    }
}
